package com.prs.crm.service.sale;

import java.io.File;
import java.util.List;

import com.prs.crm.domain.sale.SalesContract;
import com.prs.crm.domain.sale.SalesContractDetail;
import com.prs.crm.domain.stock.Product;
import com.prs.crm.service.FlowService;

public interface SalesContractService extends FlowService<SalesContract> {
	
	void  saveSalesContract(SalesContract salesContract,Product[] products,String[] pronames,Double[] originalCosts,Double[] nowCosts,Integer[] quotationNums,Double[] rebates,Double[] totalPrices,File file,String fileName);
	
	void saveOrUpdate(SalesContract sales);
	
	SalesContract getSalesContract(java.io.Serializable id);
	
	SalesContractDetail  getSalesContractDetail(Product product,SalesContract salesContract);
	
	double getSaleContract(SalesContract re);
	List<SalesContractDetail> contractDetails(SalesContract salesContract);
	
	void saveOrUpdateDetail(SalesContractDetail salesContractDetail);
	public List<SalesContractDetail> getContractDetailsNotReceives(
			SalesContract salesContract);
}
